package com.japstudy.service;

import java.util.List;

import com.japstudy.entity.Grade;
import com.japstudy.entity.Word;

public interface IWordService {
	
	int add(Word word);
	
	int update(Word word);
	
	int delete (Word word);
	
	Word selectById(String id);
	
	List<Word> selectAll();
	
	List<Word> selectByNameLike(String wordName);

	List<Word> selectByGradeId(List<Grade> grade);

	List<Word> selectByGradeIdAndStar(List<Grade> grades, String userId);
	
	List<Word> selectByGradeIdAndWrong(List<Grade> grades, String userId);

	List<Word> selectAllStarWordByUserId(String userId);

	List<Word> selectAllWrongWordByUserId(String userId);

	List<Word> selectWrongByNameLike(String wordName, String userId);

	List<Word> selectStarByNameLike(String wordName, String userId);
}
